SPRITE ALPHA

This command will return the Alpha value of the specified sprite.

  Syntax
Return Integer=SPRITE ALPHA(Sprite Number)
  Parameters
Sprite Number
Integer
The sprite number

  Returns

This command will return the Alpha value of the specified sprite

  Description

The alpha value determines how much translucency the sprite has, 255 being completely solid. You should specify the Sprite Number as an integer value.

  Example Code
load image "man.bmp",1
cls
sprite 1,100,100,1
print "sprite alpha ",sprite alpha(1)
do
loop
end
  See also

SPRITE Commands Menu
Index